home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01b.txt / 000070_icon-group-sender_Wed Jun 6 12:36:05 2001.msg < prev    next >
Internet Message Format  |  2002-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f56JZvE15012
  4.     for icon-group-addresses; Wed, 6 Jun 2001 12:35:57 -0700 (MST)
  5. Message-Id: <200106061935.f56JZvE15012@baskerville.CS.Arizona.EDU>
  6. Date: Wed, 6 Jun 2001 11:34:53 -0700 (MST)
  7. From: Gregg Townsend <gmt@cs.arizona.edu>
  8. To: icon-group@cs.arizona.edu, jsampson@indexes.u-net.com
  9. Subject: Re: [Icon-Group] Funny result with strings
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: RO
  12. Content-Length: 845
  13.  
  14. >  From icon-group-sender@CS.Arizona.EDU Tue Jun  5 08:34:09 2001
  15. >  
  16. >  I have been trying out split.icn, a procedure contributed by Hamish Lawson
  17. >  in 1996, which converts a string into a list using a cset of characters as
  18. >  delimiter.
  19.  
  20. I'm not acquainted with that code, so I can't answer questions about it.
  21. You might check out the Icon program library; the procedure words(),
  22. in the "strings" package, provides a similar facility:
  23.     http://www.cs.arizona.edu/icon/library/procs/strings.htm
  24.  
  25. Words() generates its results, but you could use it to build a list
  26. if that's what you need:
  27.     every put(L := [], words(s))
  28.  
  29.    ---------------------------------------------------------------------------
  30.    Gregg Townsend         Staff Scientist      The University of Arizona
  31.    gmt@cs.arizona.edu     Computer Science     Tucson, Arizona, USA
  32.